package com.yyj.model;

import java.io.Serializable;
import java.util.Date;

public class TPropertyAdvice implements Serializable {
    private Long id;

    private String content;

    private String mobile;

    private String roomNum;

    private Long creator;

    private Date createTime;

    private String followStatement1;

    private String followStatement2;

    private String ownerReply;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public String getRoomNum() {
        return roomNum;
    }

    public void setRoomNum(String roomNum) {
        this.roomNum = roomNum == null ? null : roomNum.trim();
    }

    public Long getCreator() {
        return creator;
    }

    public void setCreator(Long creator) {
        this.creator = creator;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getFollowStatement1() {
        return followStatement1;
    }

    public void setFollowStatement1(String followStatement1) {
        this.followStatement1 = followStatement1 == null ? null : followStatement1.trim();
    }

    public String getFollowStatement2() {
        return followStatement2;
    }

    public void setFollowStatement2(String followStatement2) {
        this.followStatement2 = followStatement2 == null ? null : followStatement2.trim();
    }

    public String getOwnerReply() {
        return ownerReply;
    }

    public void setOwnerReply(String ownerReply) {
        this.ownerReply = ownerReply == null ? null : ownerReply.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", content=").append(content);
        sb.append(", mobile=").append(mobile);
        sb.append(", roomNum=").append(roomNum);
        sb.append(", creator=").append(creator);
        sb.append(", createTime=").append(createTime);
        sb.append(", followStatement1=").append(followStatement1);
        sb.append(", followStatement2=").append(followStatement2);
        sb.append(", ownerReply=").append(ownerReply);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TPropertyAdvice other = (TPropertyAdvice) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
            && (this.getRoomNum() == null ? other.getRoomNum() == null : this.getRoomNum().equals(other.getRoomNum()))
            && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getFollowStatement1() == null ? other.getFollowStatement1() == null : this.getFollowStatement1().equals(other.getFollowStatement1()))
            && (this.getFollowStatement2() == null ? other.getFollowStatement2() == null : this.getFollowStatement2().equals(other.getFollowStatement2()))
            && (this.getOwnerReply() == null ? other.getOwnerReply() == null : this.getOwnerReply().equals(other.getOwnerReply()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getRoomNum() == null) ? 0 : getRoomNum().hashCode());
        result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getFollowStatement1() == null) ? 0 : getFollowStatement1().hashCode());
        result = prime * result + ((getFollowStatement2() == null) ? 0 : getFollowStatement2().hashCode());
        result = prime * result + ((getOwnerReply() == null) ? 0 : getOwnerReply().hashCode());
        return result;
    }
}